
   
 
    <form class="checkoutform" action="{:U('update')}" method="post">
     
      
      
      <input type="hidden" name="id" value="{$info.id}">
      
  
     <div class="form-group">
      <label class="control-label">风格名称</label>
      
         <input class="form-control" datatype="*" value="{$info.title}" name="title" type="text" placeholder="文章标题">
      
   </div>
      

       <div class="form-group">
      <label class="control-label">效果图</label>
      
         <input name="img_url" type="hidden" value="{$info.img_url}" /><img onclick="showImgBox(this);" src="<notempty name="info['img_url']">{:getThumbPath($info['img_url'])}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="img_url" height="40" />
     
   </div>
      
      
      
       <div class="form-group">
      <label class="control-label">所属分类</label>
     
      <select class="form-control" name="cate_id" id="pid">
          <option value="">请选择</option>
          <volist name="cateList" id="vo">
            <option <eq name="vo['id']" value="$info['cate_id']">selected="selected"</eq> value="{$vo.id}">{$vo.title}</option>
            
          </volist>
        </select>
      
        
     
   </div>
      
      <div class="form-group">
      <label class="control-label">主颜色</label>
      
         <input class="form-control colorpicker" datatype="*" value="{$info.color}" name="color" type="text" placeholder="颜色">
      
   </div>
  
   <!--<div class="form-group">
      <label class="control-label">风格</label>
      <div class="col-sm-10">
         <input class="form-control" datatype="*" value="{$info.title}" name="title" type="text" placeholder="风格">
      </div>
   </div>-->
 
   
      

      
        
  
    </form><script type="text/javascript" src="__PUBLIC__/Js/jquery.colorpicker.js"></script>
<script>
//色板
		$('.colorpicker').each(function(index, element) {
            $(this).colorpicker({
				fillcolor:true,
				success:function(o,color){
					//$(element).css("color",color);
					$(element).change();
					$(element).val(color);
				}
			});
        });
</script>
  